{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<form class="layui-form p-4">
    <h3 class="pb-3">查看详情</h3>
    <table class="layui-table layui-table-form">
        <tr>
            <td class="layui-td-gray-2">姓名
            </td>
            <td>
            {$data.nickname}
            </td>
            <td class="layui-td-gray-3">电话号码
            </td>
            <td>
            {$data.mobile}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">股票名称
            </td>
            <td>
                {$data.name}
            </td>
            <td class="layui-td-gray-3">股票代码
            </td>
            <td>
             {$data.codes}
            </td>
        </tr>
        <tr>
            <td class="pb-3" colspan="4"><h3>已卖出</h3>
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">卖出数量
            </td>
            <td>
                {$data.sell_num}
            </td>
            <td class="layui-td-gray-3">卖出金额
            </td>
            <td>
                {$data.sell_price}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">买入日期
            </td>
            <td >
                {$data.buy_dates}
            </td>
            <td class="layui-td-gray-3">买入价格
            </td>
            <td>
                {$data.buy_price}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">卖出日期
            </td>
            <td>
                {$data.sell_dates}
            </td>
            <td class="layui-td-gray-3">
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="pb-3" colspan="4"><h3>未卖出</h3>
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">未卖出数量</td>
            <td>
                {$data.nosell_num}
            </td>
            <td class="layui-td-gray-3">买入日期</td>
            <td>
                {$data.nobuy_date}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">买入价格</td>
            <td>
                {$data.nobuy_price}
            </td>
            <td class="layui-td-gray-3"></td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="pb-3" colspan="4"><h3>结果</h3>
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">已卖出状态</td>
            <td>
                {if condition="$data.zt eq 0"}
                不符合条件
                {else/}
                符合
                {/if}
            </td>
            <td class="layui-td-gray-3">{if condition="$data.zt eq 0"}
                盈利
                {else/}
                亏损
                {/if}</td>
            <td >
                {$data.datas}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">未卖出状态</td>
            <td>
                {if condition="$data.nozt eq 0"}
                不符合条件
                {else/}
                符合
                {/if}
            </td>
            <td class="layui-td-gray-3">{if condition="$data.nozt eq 0"}
                盈利
                {else/}
                亏损
                {/if}</td>
            <td>{$data.nodatas}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">提交时间</td>
            <td>
                {$data.create_time|date='Y-m-d H:i:s'}
            </td>
            <td class="layui-td-gray-3">合计</td>
            <td>
                {if condition="$data.buyzt eq 1"}
                符合条件，亏损金额：{$data.heji} 元
                {else/}
                不符合
                {/if}
            </td>
        </tr>
    </table>
</form>
{/block}
<!-- /主体 -->

